package com.y.mapper;

import com.y.pojo.House;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HouseMapper {
    /*添加房源*/
    public int insertHouse(House house) throws Exception;
    /*房主查询房源信息*/
    public List<House> queryHouse(int pid) throws Exception;
    /*删除房源*/
    public int delHouse(int hid) throws Exception;
    /*修改房源*/
    public int updateHouse(House house) throws Exception;

    public House selHouse(int hid) throws Exception;

    public List<House> queHouse() throws Exception;

    /*分页*/

    public List<House> seHouse() throws Exception;
    public int selAllCount() throws Exception;


    /*搜索*/
    public List<House> quHouse(String str1) throws Exception;


    /*删除全部*/
    public List<House> delete(int pid) throws Exception;
}
